<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

	class AdminController extends Controller
	{
		public function index()
		{
	    //解析后台模板
	    return view('Admin.admin.index');
	    }
	}

use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class AdminController extends Controller
{
    //后台首页
    public function index()
    {

        $data = DB::table('tcarousel')->get();
        //解析模板
        return view('Admin.index',['data'=>$data]);

      $data = DB::table('tcarousel')->get();
      //解析模板
      return view('Admin.admin.index',['data'=>$data]);

    }
}

